<%--
  Created by IntelliJ IDEA.
  User: zyp
  Date: 2021/4/6
  Time: 13:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生增加的页面</title>
</head>
<body>

<form action="addServlet" method="post" name="add">
    学号:<input type="text" name="studentID"><br/>
    姓名:<input type="text" name="studentName"><br/>
    性别：
    <select name="sex" value="${classmates.sex}">
        <option value="男" ${classmates.sex eq "男"?"selected='selected'":""}>男</option>
        <option value="女" ${classmates.sex eq "女"?"selected='selected'":""}>女</option>
    </select><br/>
    出生日期：
    <br/>&nbsp年份:<input type="text" name="birthday_N" onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="4">(输入年份在1000~2021)
    <br/>&nbsp月份:<input type="text" name="birthday_Y" maxlength="2" onkeyup="value=value.replace(/[^\d]/g,'')">(输入月份在1~12)
    <br/>&nbsp日期:<input type="text" name="birthday_R" maxlength="2" onkeyup="value=value.replace(/[^\d]/g,'')">（输入日期在1~31）
    <br/>邮箱:<input type="text" name="mailbox">
    <br/>备注:<input type="text" name="remarks">
    <br/>班级<input type="text" name="classID">
    <br/><input type="submit" name="confirm" value="确认">
</form>

<form action="student" name="app" method="post">
    <input type="submit" name="inquire" value="学生查询"/>
    <input type="submit" name="delete" value="学生删除"/>
    <input type="submit" name="update" value="学生修改"/>
    <input type="submit" name="main" value="首页"/>
</form>
</body>
</html>
